﻿using System;
using System.Collections;
using Portal.Core.Binding.FormBuilder;
using Portal.Data.Entity;
using Portal.Data.Webparts;

namespace Portal.Data.Config
{
    [Serializable]
    public class CategorySelectConfig : WebpartConfig
    {
        [Lookup(DataSource = "ListAll", DisplayField = "DisplayNameFullName", Type = typeof(Category))]
        public int Category { get; set; }

        [Builder(Title = "Thuộc box tin nổi bật"), Lookup(DataSource = "ListAllWithNone", DisplayField = "FullName", Type = typeof(Option))]
        public int Option { set; get; }

        [Builder(Title = "Số lượng hiển thị")]
        public int Max { get; set; }
    }
}
